<template>
<el-drawer title="详情" :visible.sync="visible" :wrapperClosable="false"
           size="1000px" append-to-body class="JNPF-common-drawer">
<div class="JNPF-flex-main">
<div class="dynamicForm dynamicDetail" >
<el-form ref="elForm" :model="dataForm" size="small" label-width="100px" label-position="right" >
    <template v-if="!loading">
        <el-col :span="24">
        <el-row :gutter="15">
            <el-col :span="6" >
                <el-form-item  label="通知单编号"
 prop="notificationId" >
                        <p>{{dataForm.notificationId}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="6" >
                <el-form-item  label="客户名称"
 prop="customerName" >
                        <p>{{dataForm.customerName}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="6" >
                <el-form-item  label="合同编号"
 prop="contractNo" >
                        <p>{{dataForm.contractNo}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="6" >
                <el-form-item  label="资产名称"
 prop="leaseSpace" >
                        <p>{{dataForm.leaseSpace}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="6" >
                <el-form-item  label="催款本金"
 prop="collectionPrincipal" >
                        <p>{{dataForm.collectionPrincipal}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="6" >
                <el-form-item  label="催款滞纳金"
 prop="collectionLateFee" >
                        <p>{{dataForm.collectionLateFee}}</p>
                </el-form-item>
            </el-col>
            <el-col :span="6" >
                <el-form-item  label="创建时间"
 prop="creatortime" >
                        <p>{{dataForm.creatortime}}</p>
                </el-form-item>
            </el-col>
        </el-row>
        </el-col>
    </template>
</el-form>
    </div>
    <div class="drawer-footer">
        <el-button @click="visible = false"> 取 消</el-button>
    </div>
    </div>
    </el-drawer>
</template>
<script>
    import request from '@/utils/request'
    import PrintBrowse from '@/components/PrintBrowse'
    import jnpf from '@/utils/jnpf'
    export default {
        components: {PrintBrowse},
        props: [],
        data() {
            return {
                visible: false,
                loading: false,
                printBrowseVisible: false,
                printId: '',
            dataForm: {
                id :'',
                            notificationId : '',
                            customerName : '',
                            contractNo : '',
                            leaseSpace : '',
                            collectionPrincipal : '',
                            collectionLateFee : '',
                            creatortime : '',
            },

        }
        },
        computed: {},
        watch: {},
        created() {

        },
        mounted() {},
        methods: {
            dataInfo(dataAll){
                let _dataAll =dataAll
                this.dataForm = _dataAll
            },

            init(id) {
                this.dataForm.id = id || 0;
                this.visible = true;
                this.$nextTick(() => {
                    if(this.dataForm.id){
                        this.loading = true
                        request({
                            url: '/api/example/ZcglCwDebtCollectionLog/detail/'+this.dataForm.id,
                            method: 'get'
                        }).then(res => {
                            this.dataInfo(res.data)
                            this.loading = false
                        })
                    }

                })
            },
        },
    }

</script>
